<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>模板页</title>
		<link rel="stylesheet" href="js/layer_mobile/need/layer.css" />
		<script type="text/javascript" src="js/layer_mobile/layer.js"></script>
		<link rel="stylesheet" href="css/loading.css" />
		<script type="text/javascript" src="js/promise.min.js" ></script>
		<script type="text/javascript" src="js/comm.js" ></script>
		<script type="text/javascript" src="js/vconsole.min.js" ></script>
		<script type="text/javascript" src="jquery-1.11.1.min.js" ></script>
	</head>

	<body>
		<!--加载开始-->
		<div class="loading">
			<div class="loading-con">
				<img src="img/load.gif" />
			</div>
		</div>
		<!--加载结束-->
		<script>
			var vConsole = new VConsole();
			$(function(){
				var ss_data = {
					url:"./data/test01.json",
					type:"get",
				}
				var dd_data = {
					url:"./data/test02.json",
					type:"get",
				}
				_ajax(ss_data).then(function(res){
					console.log("打印第一个数据");
					console.log(res);
				}).then(function(){
					_ajax(dd_data).then(function(res){
						console.log("打印第二个数据");
						console.log(res)
						$(".loading").hide();
					})
				})
			})
		</script>
	</body>
</html>